package com.gc.server.vo.up;


import lombok.Data;

import java.util.Date;

import com.alibaba.excel.annotation.*;

import java.io.Serializable;



import com.gc.server.entity.VoteEntity;
import com.gc.server.vo.VoteVo;

                
/**
 * 投票记录实体
 * 表名 vote
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date ${datetime}
 */
@Data
public class VoteUp implements Serializable {
    @ExcelIgnore
    private static final long serialVersionUID = 1L;

                        //
            @ExcelProperty("")
            private Long id;
        
                        //用户ID
            @ExcelProperty("用户ID")
            private Long userId;
        
                        //绘本ID
            @ExcelProperty("绘本ID")
            private Long bookId;
        
                        //投票时间
            @ExcelProperty("投票时间")
            private Date time;
        
    
    public VoteUp() {

    }

    public VoteVo toVo() {

        VoteEntity entity = new VoteEntity();
            VoteVo vo = new VoteVo(entity);
                                    entity.setId(id);
            
                                    entity.setUserId(userId);
            
                                    entity.setBookId(bookId);
            
                                    entity.setTime(time);
            
        
        return  vo;
    }



}
